|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectga.view.interfaces.MouseListener
public abstract class MouseListener
Abstract class for an mouse listener. Extends ActionListener and adds
functions.
| Field Summary | |
|---|---|
private boolean |
enabled
|
private long |
lastTime
|
| Constructor Summary | |
|---|---|
MouseListener()
Instantiates a new mouse listener. |
|
| Method Summary | |
|---|---|
boolean |
isEnabled()
Checks if is enabled. |
abstract void |
onAction(java.lang.String name,
boolean keyPressed,
boolean isDoubleClick,
float tpf)
Callback method for mouse events. |
void |
onAction(java.lang.String name,
boolean keyPressed,
float tpf)
|
void |
setEnabled(boolean enabled)
Sets the listener enabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private long lastTime
private boolean enabled
| Constructor Detail |
|---|
public MouseListener()
| Method Detail |
|---|
public final void onAction(java.lang.String name,
boolean keyPressed,
float tpf)
onAction in interface com.jme3.input.controls.ActionListener
public abstract void onAction(java.lang.String name,
boolean keyPressed,
boolean isDoubleClick,
float tpf)
name - Name of the action.keyPressed - true if the key is still pressed.isDoubleClick - true if it is a double click.tpf - The time per frame.public void setEnabled(boolean enabled)
enabled - the new enabled state.public boolean isEnabled()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||